home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 10 / FM Towns Free Software Collection 10.iso / ms_dos / tool / dbench / softtime / wait.asm < prev    next >
Assembly Source File  |  1995-01-23  |  234b  |  18 lines

  1.     .MODEL SMALL,C
  2.     .CODE
  3.  
  4. ST_wait PROC uses si di,arg1:dword
  5.     mov    di,word ptr [arg1][2]
  6.     mov    si,word ptr [arg1][0]
  7.     mov    ah,2ch
  8. lp:    int    21h
  9.     sub    si,1
  10.     jz    @f
  11.     sbb    di,0
  12.     jmp    lp
  13. @@:    or    di,di
  14.     jnz    lp
  15.     ret
  16. ST_wait ENDP
  17.     END
  18.